<?php
/**
 * @copyright:Copyright (C) 2010-2014 LiZaoNet Inc. (http://www.lizaonet.com)
 * @license: http://www.lizaonet.com
 * @link:http://www.lizaonet.com
 * @since:File available since Release v1.0
 * @Created by Azrael
 * @User: Azrael
 * @Date: 2016/1/27
 * @Time: 11:46
 *
 */

namespace Home\Logic;


use Home\Model\FangjianModel;

class RoomLogic
{
    private $model = null;

    public function __construct()
    {
        $this->model = new FangjianModel();
    }

    /**
     * 获取第一个房间
     */
    public function get_first_room()
    {
        return $this->model->getFirstRoom();
    }

    /**
     * 获取房间信息
     * @param $fid
     * @return mixed
     */
    public function getRoomInfo($fid){
        return $this->model->getInfoByFid($fid);
    }


}